<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
    <div class="aside">
    
        {template "left.html",'yellowpage'}
        
    </div>
    
    <div class="main">
    	
        <ul class="nav nav-tabs">
              <li {if $action=='manage'}class="active"{/if}><a href="{url("?module=$module&file=$file&action=manage&userid=$_userid")}">管理产品</a></li>
              <li {if $action=='add'}class="active"{/if}><a href="{url("?module=$module&file=$file&action=add&userid=$_userid")}">发布产品</a></li>
            </ul>
        
        <table cellpadding="0" cellspacing="1" class="table"> 
        
          <tr>
            <th width="250">所属分类</th>
            <th width="76">标题</th>
            <th width="58">点击</th>
            <th width="421">状态</th>
            <th width="194">更新时间</th>
            <th width="113">操作</th>
          </tr>
        {loop $infos $info}
        {php //$r = $c->get_count($info['id']);}
        <tr>
            <td>
        {$CATEGORY[$info[catid]][catname]}
            </td>
            <td><a href="{url($info[url])}" target="_blank" title="{$info[title]}">{$info[title]}</a></td>
            <td>{$r[hits]}</td>
            <td>{if $info[status]==99}<font color=#009900>审核通过</font>{elseif $info[status]==1}<font color=#FF9900>待审核</font>{/if}</td>
            <td>{date('Y-m-d H:i',$info[updatetime])}</td>
            <td><a href="{php echo "?module=$module&file=product&action=edit&id=$info[id]&userid=$userid"}">修改</a> 
            <a href="javascript:confirmurl('?module=yellowpage&file={$file}&action=delete&id={$info[id]}&userid={$userid}','确认删除此信息吗？')">删除</a></td>
        </tr>
        {/loop}
        </table>
        <div class="pagination">{$pages}</div>
        
        
        <div class="head">提示信息</div>
        <table cellpadding="0" cellspacing="1" class="table"> 
          <tr>
            <td> 您当前的级别为：{$GROUP[$_groupid]} 
            <br/>
            </td>
          </tr>
        </table>
       
    </div>
    
</div>


 
 
{template 'footer.html'}
<SCRIPT LANGUAGE="JavaScript">
<!--
$().ready(function() {
  $('form').checkForm(1);
});
//-->
</SCRIPT>

<script type="text/javascript" src="images/js/validator.js"></script>
<script type="text/javascript" src="yp/images/js/info_add.js"></script>